package experiment;

import java.util.ArrayList;
import java.util.Iterator;

public class Experiment 
{
	private Participant participant;
	private ArrayList<ExperimentPhase> phases;
	private int phaseIndex = 0;
	
	public Experiment(Participant participant)
	{
		this.phases = new ArrayList<ExperimentPhase>();
		this.setParticipant(participant);
	}

	public Participant getParticipant() {
		return participant;
	}

	public void setParticipant(Participant participant) {
		this.participant = participant;
	}

	public Iterator<ExperimentPhase> getPhasesIterator() {
		return phases.iterator();
	}

	public void addPhase(ExperimentPhase phase) {
		this.phases.add(phase);
	}
	
	public String toString()
	{
		return this.participant.getID() + ":" + this.phases;
	}


	public void nextQuestion() {
		// TODO Auto-generated method stub
	}
}
